
name="";
while read line
do
    name=$line

done < ./config/sh.config


OLD_IFS="$IFS"
IFS=","
arr=($name)
IFS="$OLD_IFS"
for s in ${arr[@]}
do
    echo "$s"
done

echo "第一个元素为: ${arr[0]}"

cd ${arr[0]}

tar zcvf web.tar.gz ${arr[1]}

mv web.tar.gz ${arr[2]}/temp

cd ${arr[2]}/work

php index.php


echo "成功:具体看work目录下的log.txt";
